import request from "@/utils/request.js"
import { useTokenStore } from '@/stores/token.js'
//用户列表查询
export const userListService = ()=>{
    return  request.get('/users')
}
//用户查询
export const userService = (id) =>{
    return request.get('/users/'+id)
}
//用户添加
export const userAddService = (userData)=>{
    return request.post('/users',userData);
}
//用户修改
export const editUserService = (id,userData)=>{
    return request.put('/users/'+id,userData)
}
//用户删除
export const delUserService = (id)=>{
    return request.delete('/users/'+id)
}
